import Cookies from 'js-cookie'

const Tokenkey = 'Authorization'

//获取token
export function getToken() {
    return Cookies.get(Tokenkey)
}

//保存token
export function setToken(token) {
    return Cookies.set(Tokenkey, token)
}

//删除token
export function deleteToken() {
    return Cookies.remove(Tokenkey)
}